import request from '@/utils/request'

// 查询成果信息列表
export function listAchievement(query) {
  return request({
    url: '/project/dashuju/list',
    method: 'get',
    params: query
  })
}
// 查询成果信息列表
export function listOne(query) {
  return request({
    url: '/project/dashuju/listOne',
    method: 'get',
    params: query
  })
}
// 查询成果信息详细
export function getAchievement(id) {
  return request({
    url: '/project/dashuju/' + id,
    method: 'get'
  })
}

// 新增成果信息
export function addAchievement(data) {
  return request({
    url: '/project/dashuju',
    method: 'post',
    data: data
  })
}

// 修改成果信息
export function updateAchievement(data) {
  return request({
    url: '/project/dashuju',
    method: 'put',
    data: data
  })
}

// 删除成果信息
export function delAchievement(id) {
  return request({
    url: '/project/dashuju/' + id,
    method: 'delete'
  })
}
















//成果总数
export function zongshu(query) {
  return request({
    url: '/project/dashuju/zongshu',
    method: 'get',
    params: query
  })
}

//成果列表
export function listdata(query) {
  return request({
    url: '/project/dashuju/getListData',
    method: 'get',
    params: query
  })
}





//成果总数
export function fenbu(query) {
  return request({
    url: '/project/dashuju/fenbu',
    method: 'get',
    params: query
  })
}
//金额
export function jiner(query) {
  return request({
    url: '/project/dashuju/jiner',
    method: 'get',
    params: query
  })
}
//成果总数
export function topfive(query) {
  return request({
    url: '/project/dashuju/topfive',
    method: 'get',
    params: query
  })
}

export function zhuantopfive(query) {
  return request({
    url: '/project/dashuju/zhuantopfive',
    method: 'get',
    params: query
  })
}
